<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of myTools
 *
 * @author Tekla
 */
class myGlobalTools 
{
    
            
    public static function isUserHaveThatPermission($user_id, $permissionName)
    {
    
    $permissionsList = sfGuardUser::getPermissions; 
    
    foreach ($permissionsList as $permission): 
        if($permission == $permissionName) {
            return (true);
        } else {
            return (false);
        }                        
    endforeach;
    }        
}

?>
